import Vue from 'vue'
import Router from 'vue-router'
//登录 首页组件
import Login from '@/components/Login'
import Index from '@/components/Index'
//右边内容组件
import HomePage from '@/components/contManage/homePage'
import UserManage from '@/components/contManage/userManage'
import SuggestManage from '@/components/contManage/suggestManage'
import SystemSetting from '@/components/contManage/systemSetting'

Vue.use(Router)

export default new Router({
  routes: [
	{
		path: '',
		component:Login
	},
	{
		path: '/login',
		component:Login
	},
	{
		path: '/index',
		component: Index,
		children:[
			{
				path: '',
				component: HomePage
			},
			{
				path: '/userManage',
				component: UserManage
			},
			{
				path: '/suggestManage',
				component: SuggestManage
			},
			{
				path: '/systemSetting',
				component:SystemSetting
			}
		]
	},
	{
		path: '/logOff', //退出
		component:Login
	}
  ]
})
